package cn.taketoday.live.data;

import java.io.Serializable;

import cn.taketoday.live.config.GlobalData;

/**
 * @author BanqiJane
 */
public class UserBarrage implements Serializable, JsonSequence {
  private static final long serialVersionUID = 1L;

  private Short mode;
  private Long color;
  private Short length = 20;
  private Long room_id = GlobalData.ROOM_ID;

  public UserBarrage() {
    super();
  }

  public UserBarrage(Short mode, Long color, Short length, Long room_id) {
    super();
    this.mode = mode;
    this.color = color;
    this.length = length;
    this.room_id = room_id;
  }

  public Short getMode() {
    return mode;
  }

  public void setMode(Short mode) {
    this.mode = mode;
  }

  public Long getColor() {
    return color;
  }

  public void setColor(Long color) {
    this.color = color;
  }

  public Short getLength() {
    return length;
  }

  public void setLength(Short length) {
    this.length = length;
  }

  public Long getRoom_id() {
    return room_id;
  }

  public void setRoom_id(Long room_id) {
    this.room_id = room_id;
  }

  @Override
  public String toString() {
    return "UserBarrage [mode=" + mode + ", color=" + color + ", length=" + length + ", room_id=" + room_id + "]";
  }

}
